import pygame
class SmallBullet(pygame.sprite.Sprite):
    def __init__(self,width,height,pos):
        pygame.sprite.Sprite.__init__(self)
        
        self.width,self.height=width,height
        self.speed=30
        self.image=pygame.transform.smoothscale(pygame.image.load('images/bullet1.png').convert_alpha(),(7,14))
        self.rect=self.image.get_rect()
        self.rect.left,self.rect.top=pos[0],pos[1]
        self.mask=pygame.mask.from_surface(self.image)
        self.hitnum=1
    def move(self):
        self.rect.bottom-=self.speed

class BigBullet(pygame.sprite.Sprite):
    def __init__(self,width,height,pos):
        pygame.sprite.Sprite.__init__(self)
        
        self.width,self.height=width,height
        self.speed=16
        self.image=pygame.transform.smoothscale(pygame.image.load('images/bullet2.png').convert_alpha(),(25,27))
        self.rect=self.image.get_rect()
        self.rect.left,self.rect.top=pos[0],pos[1]
        self.hitnum=2
    def move(self):
        self.rect.bottom-=self.speed

class SmallEnemyBullet(pygame.sprite.Sprite):
    def __init__(self,width,height,pos):
        pygame.sprite.Sprite.__init__(self)
        
        self.width,self.height=width,height
        self.speed=10
        self.image=pygame.transform.smoothscale(pygame.image.load('images/bullet3.png').convert_alpha(),(20,20))
        self.rect=self.image.get_rect()
        self.rect.left,self.rect.top=pos[0],pos[1]
        self.hitnum=1
    def move(self):
        self.rect.bottom+=self.speed

class MidEnemyBullet(pygame.sprite.Sprite):
    def __init__(self,width,height,pos):
        pygame.sprite.Sprite.__init__(self)
        
        self.width,self.height=width,height
        self.speed=12
        self.image=pygame.transform.smoothscale(pygame.image.load('images/bullet4.png').convert_alpha(),(4,8))
        self.rect=self.image.get_rect()
        self.rect.left,self.rect.top=pos[0],pos[1]
        self.hitnum=1
    def move(self):
        self.rect.bottom+=self.speed

